#!/bin/sh

while read text
do
  if [ "$text" = "fi" ] ; then
    echo -n 'saw FI, need something else: '
    read newinput < /dev/tty
    echo new input. Read $newinput
  else
    echo "> " $text
  fi
done < $1

